package com.csii.modules.project.mapper;

import java.util.List;
import com.csii.modules.project.mapper.entity.ProjectUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Description: 项目成员表
 * @Author: power-stdio
 * @Date:   2020-11-05
 * @Version: V1.0
 */
public interface ProjectUserMapper extends BaseMapper<ProjectUser> {
	@Delete("\tDELETE \n" +
			"\t\tFROM  project_user \n" +
			"\t\tWHERE\n" +
			"\t\t\t pro_id = #{mainId} ")
	public boolean deleteByMainId(@Param("mainId") String mainId);
    @Select("SELECT * \n" +
			"\t\tFROM  project_user\n" +
			"\t\tWHERE\n" +
			"\t\t\t pro_id = #{mainId} ")
	public List<ProjectUser> selectByMainId(@Param("mainId") String mainId);
}
